package com.itheima.service;

import com.itheima.common.PageInfo;
import com.itheima.pojo.Category;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Transactional
public interface CategoryService {

    public PageInfo page(Integer start,Integer pageSize);

    boolean save(Category category);

    boolean update(Category category);



    List<Category> getList(Integer type);

    boolean delete(String id);

    Category getById(String id);

    /**
     * 移动端获取分类
     *
     * @return  List<Category>
     */
    List<Category> clientGetList();
}
